import com.yhy.device.interfaces.IDeviceService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by yhy on 17-6-18.
 */
public class Main {
    public static void main( String args[] ){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring-dubbo-consumer.xml");
        IDeviceService deviceInterface = applicationContext.getBean("DeviceInterface", IDeviceService.class);

        String result = deviceInterface.reboot();

        System.out.println(result);
    }
}
